package com.nexus.web.sys.Nexus;

import com.nexus.core.exception.AuthenicException;
import com.nexus.core.response.ResponseMessage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2025/9/19 02:08
 * @Author luzhengning
 **/
@SpringBootApplication
@ComponentScan("com.nexus.*")
@RestController
@RequestMapping("sys")
class NexusWebSysApplication {

    @GetMapping("test2")
    public ResponseEntity<?> test() throws AuthenicException {
        return ResponseMessage.OK("sys-server");
    }

    public static void main(String[] args) {
        TestFeign bean = SpringApplication.run(NexusWebSysApplication.class, args).getBean(TestFeign.class);

    }

}
